var ServerWrapper = require('./ServerWrapper.js');

var ServerBook = require('./ServerBook.js');
var ServerAuthor = require('./ServerAuthor.js');



var serverBook = new ServerWrapper(ServerBook());
var serverAuthor = new ServerWrapper(ServerAuthor());

serverBook.run(function(err) {
	console.log('--------------------serverBook is ok');


	serverAuthor.run(function(err) {
		console.log('--------------------serverAuthor is ok');
		serverAuthor.rpc('book', 'author request book', function(result) {
			console.log('author rpc book, result=%s', result);
		})
	});

})